using System.Collections;
using Holoville.HOTween;
using UnityEngine;

public class PreviewTransportController : MonoBehaviour
{
	private GameObject currentCar;

	private ResourceRequest resourceRequest;

	public RotationObject rotator;

	public static PreviewTransportController instance;

	private string idCar = string.Empty;

	[SerializeField]
	private Transform posCar;

	private Tweener SlideOutTweener;

	private void Awake()
	{
		instance = this;
	}

	public void ShowTransport(string id)
	{
		if (!idCar.Equals(id) || !(currentCar != null))
		{
			StartCoroutine(IShowTransport(id));
		}
	}

	private IEnumerator IShowTransport(string id)
	{
		yield break;
	}

	public void DestroyCar()
	{
		if (currentCar != null)
		{
			Object.Destroy(currentCar);
			currentCar = null;
		}
	}
}
